Skip to content

Avoid incorrectly forcing new visit when AI Assistants provide utm_source parameter#196

Merged
AltamashShaikh merged 2 commits into5.x-devfrom
dev-19639
Nov 7, 2025
Merged

Avoid incorrectly forcing new visit when AI Assistants provide utm_source parameter#196
AltamashShaikh merged 2 commits into5.x-devfrom
dev-19639

Conversation

@sgiehl
Copy link
Member

@sgiehl sgiehl commented Nov 7, 2025

Description

If A visitor currently comes from ChatGPT to a website, ChatGPT might attach utm_source=chatgpt.com to the url. Matomo and this plugin are currently not considering this parameter for new visits, if it can be detected as AI Assistant.

However, if the utm_source parameter persists, e.g. after page reload, the plugin might currently force a new visit. This should be avoided, unless new campaign parameters are provided, that don't resolve to an AI Assistant.

fixes matomo-org/matomo#23708

Issue No

Steps to Replicate the Issue

Checklist

  • [✔/✖] Tested locally or on demo2/demo3?
  • [✔/✖/NA] New test case added/updated?
  • [✔/✖/NA] Are all newly added texts included via translation?
  • [✔/✖/NA] Are text sanitized properly? (Eg use of v-text v/s v-html for vue)
  • [✔/✖/NA] Version bumped?

@sgiehl sgiehl requested a review from a team November 7, 2025 11:03
Copy link
Contributor

@AltamashShaikh AltamashShaikh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sgiehl The testing worked fine for me, can you update the release version, next release date is 2025-11-10

AltamashShaikh
AltamashShaikh previously approved these changes Nov 7, 2025
@AltamashShaikh AltamashShaikh merged commit 71bab3d into 5.x-dev Nov 7, 2025
7 checks passed
@AltamashShaikh AltamashShaikh deleted the dev-19639 branch November 7, 2025 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Matomo creates a new visit for each "hit" by visitors from ChatGPT

2 participants